package org.zhuyx.ch01.shizhan.entity;

import org.zhuyx.ch01.shizhan.dao.Ink;
import org.zhuyx.ch01.shizhan.dao.Page;

/**
 * @author 茜茜
 * @date 2024-12-06 10:30
 */
public class Print {
    private Ink ink;
    private Page page;


    public Print(Ink ink, Page page) {
        this.ink = ink;
        this.page = page;
    }

    public void print(String r, String g, String b){
        System.out.println("纸张大小" + page.getPageSize() + "颜色：" + ink.getColor(r, g, b));
    }

    public Ink getInk() {
        return ink;
    }

    public void setInk(Ink ink) {
        this.ink = ink;
    }

    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }
}
